﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MonoDevelop.Ide;
using MonoDevelop.Core;
using MonoDevelop.Projects.Dom.Parser;

using Mono.TextEditor;
using Mono.TextEditor.Highlighting;

namespace Coq.MonoDevelop
{
    class CoqSyntaxMode : SyntaxMode
    {
        public CoqSyntaxMode()
        {
            //Load CoqSyntaxMode
            var rxprovider = new ResourceXmlProvider(typeof(CoqSyntaxMode).Assembly, "CoqSyntaxMode.xml");
            var reader = rxprovider.Open();
            var mode = SyntaxMode.Read(reader);
            
            //Set params
            this.rules = mode.Rules.ToList();
            this.keywords = mode.Keywords.ToList();
            this.spans = mode.Spans;
            this.matches = mode.Matches;
            this.prevMarker = mode.PrevMarker;
            this.SemanticRules = mode.SemanticRules.ToList();
            this.table = mode.Table;
            this.properties = mode.Properties;
        }
    }
}
